extends Node2D

export(PackedScene) var player_tscn:PackedScene

func _ready():
	var _e=get_tree().current_scene.connect("level_start_signal",self,"start_born")

func start_born():
	$AnimatedSprite.play("Flash")
	$Timer.start(1)

func _on_timeout():
	var player = player_tscn.instance()
	get_tree().current_scene.add_child(player)
	player.position= self.position
	$AnimatedSprite.play("Empty")
	player.set_invincible(3)
	pass # Replace with function body.
